For example , you can use the stack pointer to follow the stack 例如,可以使用堆棧指針跟蹤堆棧。
Inline assembly can be written to determine the stack pointer 可以編寫內(nèi)聯(lián)程序集( inline assembly )來確定棧指針。
On solaris , this sample code allows you to get the stack pointer 在solaris ,下面這段示例代碼讓您可以獲取堆棧指針:
Getting the stack pointer 獲得堆棧指針
Parameter is the offset from the stack pointer to the high - order part of the value 參數(shù)是距離值的高位部分堆棧指針的偏移量。
Set up stack pointer 設置堆棧指針
Parameter is the offset from the stack pointer to the low - order part of the value , and the 參數(shù)是距離值的低位部分堆棧指針的偏移量,
The stack pointer is not used at all in the function and changing its value is meaningless 堆棧指針根本不能這樣使用,改變它的值是無意義的。
There are no push or pop instructions and no dedicated stack pointer register defined by the architecture 體系結構沒有定義壓入或者彈出指令,也沒有定義專門的棧指針寄存器。
The eabi reserves gpr1 for a stack pointer , gpr3 - gpr7 for function argument passing , and gpr3 for function return values Eabi將gpr1預留為棧指針, gpr3到gpr7用于函數(shù)參數(shù)傳遞, gpr3用于函數(shù)返回值。